/*
    Copyright (C) 2011 Hugo Arregui, FuDePAN

    This file is part of the Biopp Library.

    Biopp is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    Biopp is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with Biopp.  If not, see <http://www.gnu.org/licenses/>.

    This is a test file.
*/

#include <gtest/gtest.h>
#include <gmock/gmock.h>
#include "biopp/biopp.h"

using namespace std;
using namespace biopp;
using namespace testing;

TEST(structure, startsEmpty)
{
    Structure<> s;
    ASSERT_EQ(0, s.items());
}

TEST(structure_with_rotation, from_structure)
{
    Coord3d c(0, 0, 0);
    Structure<> s;
    s.addItem(c);
    StructureWithRotation sr(s);
    ASSERT_EQ(s.items(), sr.items());
}

TEST(structure_with_rotation, rmsd_to)
{
    Coord3d c(0, 0, 0);
    Structure<> s;
    s.addItem(c);
    StructureWithRotation sr1(s);
    StructureWithRotation sr2(s);
    ASSERT_EQ(0, sr1.rmsd_to(sr2, true));
}

TEST(structure_with_rotation, rotalign_to)
{
    Coord3d c(0, 0, 0);
    Structure<> s;
    s.addItem(c);
    StructureWithRotation sr1(s);
    StructureWithRotation sr2(s);
    sr1.rotalign_to(sr2);
}
